#!/usr/bin/ node
const cp = require('child_process');
try{
  let child = cp.spawn('./03-child.js',[],{detach:true,stdio:['ignore',1,2]});



  //child.stdout.pipe(process.stdout);
  child.unref();
  console.log(`Im father Process:${process.pid}`);

  setTimeout(()=>{
    console.log('GoodBye');
    process.exit();
  },5000);
}catch(e){
  console.log(e.message);
}
